<?php


include "svm.php";

set_time_limit(0);

$time0 = time();
$svm = new PHPSVM();
$svm->train('data/train2.dat', 'model.svm');

$time1 = time();
echo "Elapsed time for train: " . ($time1 - $time0) . "<br />";

echo $svm->test('data/test2.dat', 'model.svm', 'output.dat'); 

$time0 = time();
echo "<br />Elapsed time for test: " . ($time0 - $time1) . "<br />";


?>